import Vue from 'vue'
import App from './App.vue'
import router from './routers/router'
import ElementUI from 'element-ui'
import Fragment from 'vue-fragment'
import FileSaver from 'file-saver'
import XLSX from 'xlsx'
import store from './store/index'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import {get,post} from './request/http'
import './assets/font/font.css'
import './assets/icon/iconfont.css'
import './assets/css/style.less'
// import './assets/css/common.css'

import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import Quill from 'quill'
import { ImageDrop } from 'quill-image-drop-module'
import ImageResize from 'quill-image-resize-module' //调节图片大小
Quill.register('modules/imageDrop', ImageDrop)
Quill.register('modules/imageResize', ImageResize)
Vue.use(VueQuillEditor)


import base from './Base.vue'
import loading from './components/loadingIndx.js'
import {isFlagClick} from './components/loading.js'
// Vue.use(loginBg)
Vue.use(loading)
Vue.use(ElementUI)
Vue.use(Fragment.Plugin)
Vue.prototype.FileSaver = FileSaver
Vue.prototype.XLSX = XLSX
Vue.prototype.$eventHub = new Vue(); //子页面向父页面传值
Vue.prototype.$get=get;
Vue.prototype.$post=post;
Vue.prototype.$isClick = isFlagClick;
Vue.prototype.BASE_API_URL = base.BASE_URL;
Vue.prototype.BASE_QINIU_URL = base.QINIU_URL;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
